<template>
	<view class="body">
		<view class="content">
			<view class="title">
				<view class="title_line"></view>
				<text class="item_title">我的企业信息</text>
			</view>
			<view class="line"></view>
			<view class="itme_text">
				<view class="text_left">企业名称</view>
				<view class="text_right">{{qy_map.ownerName}}</view>
			</view>
			<view class="line"></view>
			<view class="itme_text">
				<view class="text_left">企业地址</view>
				<view class="text_right">{{qy_map.ownerAddr}}</view>
			</view>
			<view class="line"></view>
			<view class="itme_text">
				<view class="text_left">联系人</view>
				<view class="text_right">{{qy_map.contacts}}</view>
			</view>
			<view class="line"></view>
			<view class="itme_text">
				<view class="text_left">联系电话</view>
				<view class="text_right">{{qy_map.ptTel}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
              qy_map:{}
			};
		},
		mounted() {
            this.myQy()
		},
		methods: {
			myQy() {
				this.$api.myQy({}).then(res => {
                    if(res.data['code']==200){
						this.qy_map=res.data['data'];
					}
				}).catch(res => {

				});
			}
		}
	}
</script>

<style lang="scss">
	.body {
		padding: 20rpx;

		.content {
			background-color: #FFFFFF;
			border-radius: 20rpx;
			padding-top: 10rpx;
			padding-bottom: 10rpx;


			.title {
				padding-top: 25rpx;
				padding-bottom: 25rpx;
				display: flex;
				align-items: center;

				.title_line {
					width: 5rpx;
					height: 50rpx;
					background-color: $app-color;
				}

				.item_title {
					margin-left: 30rpx;
					font-size: 35rpx;
				}

			}

			.line {
				height: 1rpx;
				background-color: #F2F2F2;
				margin-left: 20rpx;
				margin-right: 20rpx;
			}

			.itme_text {
				display: flex;
				align-items: center;
				margin-left: 20rpx;
				padding-top: 25rpx;
				padding-bottom: 25rpx;

				.text_left {
					font-size: 32rpx;
					color: #666666;
				}

				.text_right {
					margin-left: 32rpx;
					font-size: 30rpx;
				}
			}
		}
	}
</style>
